package com.buba.customer.service.impl;

import com.buba.customer.dao.ChinaMapper;
import com.buba.customer.pojo.China;
import com.buba.customer.service.ChinaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 中国地址业务接口实现
 */
@Service
public class ChinaServiceImpl implements ChinaService {
    private ChinaMapper chinaMapper;


    @Override
    public List<China> selChina(Integer pid) {
        return chinaMapper.selChina(pid);
    }

    @Override
    public China selChinaById(Integer id) {
        return chinaMapper.selChinaById(id);
    }


    public ChinaMapper getChinaMapper() {
        return chinaMapper;
    }
    @Autowired
    public void setChinaMapper(ChinaMapper chinaMapper) {
        this.chinaMapper = chinaMapper;
    }


}
